<#macro header _title="">
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>${_title}</title>
		<link rel="stylesheet" type="text/css" href="${base}/web/css/web_style.css" />
    	<script language="javascript" type="text/javascript" src="${base}/web/js/jquery.js"></script>
		<#nested>
	</head>
</#macro>

<#macro pagerCode>
	<div class="list">
		<#if (pager.result?size > 0)>
			<div class="pagerBar">
<!--				<div class="delete">
					<input type="button" id="searchButton" class="button" value="批量删除" />
				</div>-->
				<div class="pager">
					<script type="text/javascript">
					$().ready( function() {
						$("#pager").pager({
							pagenumber: ${pager.pageNumber},
							pagecount: ${pager.pageCount},
							buttonClickCallback: gotoPage
						});
					});
					var gotoPage = function(pNum) {
						$("#pageNumber").val(pNum);
						$("#listForm").submit();
					};
					</script>
					<span id="pager"></span>
					<input type="hidden" name="pageNumber" id="pageNumber" value="${pager.pageNumber}" />
					<!--<input type="hidden" name="orderBy" id="orderBy" value="${pager.orderBy}" />
					<input type="hidden" name="orderType" id="order" value="${pager.orderType}" />-->
				</div>
			<div>
		<#else>
			<div class="noRecord">没有找到任何记录!</div>
		</#if>
	</div>
</#macro>

<#macro position _value="">
	<!-- 当前位置 -->
	<div class="Position">
		<div class="Position-middle">
			<div class="Position-left"></div>
			<div class="Position-caption">当前位置：${_value}</div>
			<div class="Position-right"></div>
		</div>
	</div>
</#macro>

<#macro filterSelect _optionList="">
	<#if _optionList != "">
	<div class="searchleft">
		<select id="filterSelect" onchange="location.href='?sid='+this.value()">
			<#list _optionList as _option>
				<option value="${_option.id}">${_option.name}</option>
			</#list>
		</select>
	</div>
	</#if>
</#macro>

<#macro search>
	<!-- 查询 -->
	<div class="search"><a href="search.htm">查 询</a></div>
	<#nested>
</#macro>

<#macro listIndex _listTitle="" _data="" _dataUrl="">

        <!-- title -->
		<div class="title marginTop15">
            <div class="title-middle">
                <div class="title-left"></div>
                <div class="title-caption">${_listTitle}</div>
                <div class="title-right"></div>
            </div>
        </div>
        
        <!-- table -->
        <table class="tableCenter alignCenter">
            <tr>
                <th width="6%">序号</th>
                <th width="15%">核对编号</th>
                <th width="10%">申请人代表姓名</th>             
                <th width="15%">证件类型</th>
                <th width="24%">证件号</th>
                <th width="15%">受理日期</th>
                <th width="15%">状态</th>
            </tr>
            <#if (_data?size>0)>
	            <#list _data as data>
	            <tr>
	                <td>${data_index+1}</td>
	                <td>${(data.id)!!}</td>
	                <td><a href="${_dataUrl}${data.id}">${(data.familyMember.name)!!}</a></td>
	                <td>${(data.familyMember.idType)!!}</td>
	                <td>${(data.familyMember.idNumber)!!}</td>
	                <td>${(data.handleTime)}</td>
	                <td>${data.handleStatus}</td>
	            </tr>
	            </#list>
            </#if>
        </table>
</#macro>

